package com.innovation.chengzhangriji.ui.widget;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ProgressBar;

import com.innovation.chengzhangriji.R;

public class TimelineProgressViewHolder extends RecyclerView.ViewHolder {

    ProgressBar progressBar;

    public TimelineProgressViewHolder(View itemView) {
        super(itemView);
        progressBar = (ProgressBar) itemView.findViewById(R.id.progress_bar);
    }

    public void show(){
        progressBar.setVisibility(View.VISIBLE);
    }

    public void hide(){
        progressBar.setVisibility(View.GONE);
    }
}
